//
//  NSDictionary+Utils.h
//  LongLinkManager
//
//  Created by YCJ on 2020/3/5.
//  Copyright © 2020 YCJ. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSDictionary (Ext)

// 字典转换为JSON字符串
- (NSString *)jsonString;

/**
 *  生成JSON格式的字符串
 *  A JSON formatted string from the receiver.
 */
@property (copy, nonatomic, readonly) NSString *JSONString;

/**
 *  移除所有NSNull对象
 *  Remove all null objects
 *
 *  @return Returns an dictionary of none null.
 */
- (NSDictionary *)removeNulls;

/**
 是否包含NSNull
 
 @return 判断参数是否包含NSNull
 */
- (BOOL)containsNSNull;

@end

NS_ASSUME_NONNULL_END
